﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Topic.aspx.cs" Inherits="Pages_Topic" %>
<%@ Import Namespace="CoyoEden" %>
<%@ Register Src="~/Views/TopicComments.ascx" TagName="TopicComments" TagPrefix="uc" %>
<%@ Register Src="~/User controls/QuickReply.ascx" TagName="QuickReply" TagPrefix="uc" %>
<asp:content id="Content1" contentplaceholderid="cphBody" runat="Server">
	<div class="nav">
		<a href="#quickreplybox" title="发表主题">发表评论</a>
	</div>
	<uc:TopicComments ID="TopicComments1" runat="server" />
	<div class="sep"></div>
	<uc:QuickReply ID="quickReply1" runat="server" />
	<script type="text/javascript">
	<!--
		$(document).ready(function() {
			if (Topic) {
				Topic.Init({
					Asmx: "<%=Utils.AbsoluteWebRoot %>App_Services/Topic.asmx/",
					TopicID: "<%=TopicID %>",
					InitPagerStr: '<%=InitPagerStr %>',
					ViewPath: "<%=CommentListViewPath %>"
				});
				if (Topic.InitPager == ""||Topic.HasItems==false) return;
				var initPager = $.evalJSON(Topic.InitPager);
				SimplePager.Init(initPager, Topic.Select);
			}
		});

	//-->
	</script>
</asp:content>
